package enumeration

type UserStatus int
type UserGender int

const (
	UserStatusDisabled UserStatus = iota
	UserStatusEnabled
)

const (
	UserGenderMale UserGender = iota + 1
	UserGenderFemale
)

func (s UserStatus) StatusString() string {
	switch s {
	case UserStatusDisabled:
		return "禁用"
	case UserStatusEnabled:
		return "启用"
	default:
		return "未知"
	}
}

func (s UserGender) GenderString() string {
	switch s {
	case UserGenderMale:
		return "男"
	case UserGenderFemale:
		return "女"
	default:
		return "未知"
	}
}
